import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
function resolve(dir: string) {
  return path.join(__dirname, dir)
}
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    // 解决不能通过ip访问
    host: '0.0.0.0',
    port: 3001,
    proxy: {
      // '/api': 'http://api.beehub.paradeum.com:8110',
      // '/static': 'http://api.beehub.paradeum.com:8110'
    },
  },
  resolve: {
    alias: {
      '@': resolve('./src'),
    },
  },
})
